package com.legleg.conf;

import java.util.HashMap;
import java.util.Properties;

/**
 * Created by IntelliJ IDEA.
 * User: Sufeng
 * Date: 12-4-14
 * Time: 下午2:40
 * To change this template use File | Settings | File Templates.
 */
public class LegPropertyManager {

	private static HashMap<String, Properties> PropertyMap = new HashMap<String, Properties>();

	public static void putProperties(String namespace, Properties properties) {
		PropertyMap.put(namespace, properties);
	}

	public static Properties getProperties(String namespace) {
		return PropertyMap.get(namespace);
	}

	public static String getProperty(String namespace, String key) {
		return getProperties(namespace).getProperty(key);
	}
}
